package com.example.blog.dto.users;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
public class UserDto {
    @NotBlank(message = "不为空")
    @Min(value = 1,message = "最小值为1")
    private int rid;
    private int uid;
    private String username;
    private String password;
}
